@import "@/assets/css/element-variables.scss";

/*通用白色面板*/

.common-panel {
    box-sizing: border-box;
    border: 1px solid rgba(232, 232, 232, 1);
    background-color: #fff;
    box-shadow: 1px 1px 1px rgba(204, 204, 204, 0.349019607843137);
}


/*通用折叠tabs*/

.common-collapse-tab {
    .turn {
        transform: rotate(-90deg);
    }
    /deep/ .el-tabs__item {
        position: static;
        height: 67px;
        text-align: center;
        line-height: 67px;
        .arrow {
            display: none;
            position: absolute;
            z-index: 100;
            right: 20px;
            top: 50%;
            margin-top: -7px;
            transition: transform 0.3s, -webkit-transform 0.3s;
        }
    }
    /deep/ .el-tabs__item.is-focus.is-active {
        box-shadow: none !important;
    }
    /deep/ .el-tabs__nav {
        position: static;
        float: none;
        .is-active {
            .arrow {
                display: inline-block;
            }
        }
    }
    /deep/ .el-tabs__nav-scroll {
        box-sizing: border-box;
        padding-left: 20px;
    }
    /deep/ .el-tabs__nav-wrap::after {
        height: 1px;
    }
    /deep/ .el-tabs__header {
        margin: 0px;
    }
    /deep/ .el-tab-pane {
        box-sizing: border-box;
        padding: 0px;
        overflow: hidden;
    }
}


/*通用底部固定按钮区域*/

.common-bottom-fixed-area {
    height: 60px;
    width: calc(100% - 220px);
    position: fixed;
    bottom: 0px;
    left: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    box-shadow: 2px 0px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
    .orange {
        background-color: rgba(255, 153, 0, 1);
        border: 1px solid rgba(255, 153, 0, 1);
    }
}


/* 表格 */

.el-table thead {
    height: 50px;
    color: #606266 !important;
}

.el-table thead th {
    background: #f2f2f2;
}


/* 弹窗- */

.el-dialog__header {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    border-bottom: 1px solid #ebebeb;
}


/* 表单输入框长度控制 */

.el-dialog__body {
    .el-autocomplete,
    .el-select,
    .el-input,
    .el-cascader {
        display: block !important;
        width: 100% !important;
    }
    .el-date-editor {
        width: 100% !important;
    }
}


/* 级联选择器，样式实现，点击文字选择任意一级选项 */

.el-cascader-panel .el-radio {
    width: 100%;
    height: 100%;
    z-index: 10;
    position: absolute;
    top: 0;
    right: 0;
}

.el-cascader-panel .el-radio__input {
    visibility: hidden;
}

.el-cascader-panel .el-cascader-node__postfix {
    top: 10px;
}


/* 气泡弹窗样式 */

.el-popconfirm__main {
    margin: 5px 0 8px;
}


/* 按钮里面的iconfont */

.el-button .iconfont {
    font-size: 14px;
}


/* 图片 */

.el-image .image-slot {
    position: relative;
    width: 100%;
    height: 100%;
}

.el-image .image-slot img {
    max-width: 100%;
    max-height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


/* 高德地图 */


/* 地图控件 */

.amap-controls {
    position: absolute;
    bottom: 0;
    right: 0;
}

.amap-luopan {
    position: absolute;
    bottom: -10px;
    right: -10px;
}

.amap-luopan,
.amap-luopan-bg {
    background: url("../images/amap/amap1.png") 11px 16px no-repeat !important;
}

.amap-compass {
    width: 94px !important;
    background: url("../images/amap/amap2.png") 7px 8px no-repeat !important;
}

.amap-rotateLeft,
.amap-rotateRight {
    cursor: pointer;
    background: url("../images/amap/amap3.png") 23px 31px no-repeat !important;
}

.amap-rotate-active {
    background: url("../images/amap/amap4.png") 23px 31px no-repeat !important;
}

.amap-pitchUp {
    cursor: pointer;
    background: url("../images/amap/amap5.png") 23px 24px no-repeat !important;
}

.amap-pitchDown {
    cursor: pointer;
    background: url("../images/amap/amap5.png") 25px 25px no-repeat !important;
}

.amap-pitchUp.amap-pitch-active {
    background: url("../images/amap/amap6.png") 23px 24px no-repeat !important;
}

.amap-pitchDown.amap-pitch-active {
    background: url("../images/amap/amap6.png") 25px 25px no-repeat !important;
}


/* 去logo */

.amap-logo {
    display: none !important;
}


/* 表格操作列 */

/deep/.opt-add {
    display: inline-block;
    padding: 0 6px;
    background: #1a64ee;
    color: #00b7ff;
    border-radius: 2px;
    cursor: pointer;
}

/deep/.opt-add:hover {
    background: #cce5ff;
}

/deep/.opt-edit {
    display: inline-block;
    padding: 0 6px;
    background: #e6f2ff;
    color: #007cff;
    border-radius: 2px;
    cursor: pointer;
}

/deep/.opt-edit:hover {
    background: #cce5ff;
}

/deep/.opt-del {
    display: inline-block;
    padding: 0 6px;
    background: #fce9e9;
    color: #f04864;
    border-radius: 2px;
    margin-left: 10px;
    cursor: pointer;
}

/deep/.opt-del:hover {
    background: #f3cfd2;
}

//头部搜索栏样式修改
.topBar {
    padding: 16px 4px 16px 10px !important;
}

//弹型布局
.between {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    >div {
        &:last-child {
            min-width: 150px;
        }
    }
}

// 表格样式修改
.myTable {
    height: 100%;
    display: flex;
    flex-direction: column;
}

//icons
.jp-sidebar__menu-icon {
    transition: inline-block 0.3s, left 0.3s, width 0.3s, margin-left 0.3s, font-size 0.3s;
}

.input-select {
    position: relative;
    ul {
        position: absolute;
        left: 0;
        top: 50px;
        background: #fff;
        width: 100%;
        height: auto;
        z-index: 999;
        padding: 20px;
        border-radius: 5px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        li {
            border-radius: 5px;
            padding: 0 10px;
            cursor: pointer;
            &:hover {
                background: #f5f7fa;
            }
            .el-icon-close {
                padding: 0 5px;
                &:hover {
                    background: #fce9e9;
                }
            }
        }
    }
}

//暂无数据通用样式
.nomore {
    text-align: center;
    line-height: 2;
    font-size: 14px;
    width: 100%;
}